#include "cgic.h"

int cgiMain(){
	char *name[128];
	cgiFormString("name",name,128);
    cgiHeaderContentType("text/html");
	/* Top of the page */
	fprintf(cgiOut, "<HTML><HEAD><meta charset='UTF-8'>\n");
	fprintf(cgiOut, "<TITLE>cgic test</TITLE></HEAD>\n");
	fprintf(cgiOut, "<BODY><H1>%s</H1>\n",name);
    fprintf(cgiOut, "</BODY></HTML>\n");
	return 0;
}